from selenium.webdriver.common.by import By
from yvekao.Base import Base
import time


class Page(Base):
    shan_log = (By.XPATH,
                '/html/body/div[1]/div/section/section/main/div[1]/div/div[1]/div[3]/div/div[1]/div/table/tbody/tr[2]/td[6]/div/i/svg')

    def shan_in(self):
        self.click(self.shan_log)

    def shan_go(self):
        self.open_url("http://localhost:8080/itemlist")
        time.sleep(1)
        self.shan_in()
        print("删除")
